<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <title>Cangjie Code Coverage Report</title>
  <style media="screen" type="text/css">
  body
{
  color: #000000;
  background-color: #FFFFFF;
}

/* Link formats: use maroon w/underlines */
a:link
{
  color: navy;
  text-decoration: underline;
}
a:visited
{
  color: maroon;
  text-decoration: underline;
}
a:active
{
  color: navy;
  text-decoration: underline;
}

/*** TD formats ***/
td
{
  font-family: sans-serif;
}
td.title
{
  text-align: center;
  padding-bottom: 10px;
  font-size: 20pt;
  font-weight: bold;
}

/* TD Header Information */
td.headerName
{
  text-align: right;
  color: black;
  padding-right: 6px;
  font-weight: bold;
  vertical-align: top;
  white-space: nowrap;
}
td.headerValue
{
  text-align: left;
  color: #284FA8;
  font-family: sans-serif;
  font-weight: bold;
  white-space: nowrap;
}

td.headerTableEntry
{
  text-align: right;
  color: black;
  font-weight: bold;
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 4px;
  background-color: LightBlue;
}
td.headerValueLeg
{
  text-align: left;
  color: black;
  font-size: 80%;
  white-space: nowrap;
  padding-top: 2px;
}

/* Color of horizontal ruler */
td.hr
{
  background-color: navy;
  height:3px;
}
/* Footer format */
td.footer
{
  text-align: center;
  padding-top: 3px;
  font-family: sans-serif;
}

/* Coverage Table */

td.coverTableHead
{
  text-align: center;
  color: white;
  background-color: SteelBlue;
  font-family: sans-serif;
  font-size: 120%;
  white-space: nowrap;
  padding-left: 4px;
  padding-right: 4px;
}
td.coverFile
{
  text-align: left;
  padding-left: 10px;
  padding-right: 20px;
  color: black;
  background-color: LightBlue;
  font-family: monospace;
  font-weight: bold;
  font-size: 110%;
}
td.coverBar
{
  padding-left: 10px;
  padding-right: 10px;
  background-color: LightBlue;
}
td.coverBarOutline
{
  background-color: white;
}
td.coverValue
{
  padding-top: 2px;
  text-align: right;
  padding-left: 10px;
  padding-right: 10px;
  font-family: sans-serif;
  white-space: nowrap;
  font-weight: bold;
}

/* Link Details */
a.detail:link
{
  color: #B8D0FF;
  font-size:80%;
}
a.detail:visited
{
  color: #B8D0FF;
  font-size:80%;
}
a.detail:active
{
  color: #FFFFFF;
  font-size:80%;
}

.graphcont{
    color:#000;
    font-weight:700;
    float:left
}

.graph{
    float:left;
    background-color: white;
    position:relative;
    width:280px;
    padding:0
}

.graph .bar{
    display:block;
    position:relative;
    border:black 1px solid;
    text-align:center;
    color:#fff;
    height:10px;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    line-height:1.9em
}

.graph .bar span{
    position:absolute;
    left:1em
}

td.coveredLine,
span.coveredLine
{
    background-color: LightGreen!important;
}

td.uncoveredLine,
span.uncoveredLine
{
    background-color: LightPink!important;
}

.linebranch, .linecount
{
    border-right: 1px gray solid;
    background-color: lightgray;
}

.linebranchDetails
{
    position: relative;
}
.linebranchSummary
{
    cursor: help;
}
.linebranchContents
{
    font-family: sans-serif;
    font-size: small;
    text-align: left;
    position: absolute;
    width: 15em;
    padding: 1em;
    background: white;
    border: solid gray 1px;
    box-shadow: 5px 5px 10px gray;
    z-index: 1; /* show in front of the table entries */
}

.takenBranch
{
    color: Green!important;
    cursor: help;
}

.notTakenBranch
{
    color: Red!important;
    cursor: help;
}

.src
{
    padding-left: 12px;
}

.srcHeader,
span.takenBranch,
span.notTakenBranch
{
    font-family: monospace;
    font-weight: bold;
}

pre
{
    height : 15px;
    margin-top: 0;
    margin-bottom: 0;
}

.lineno
{
    background-color: #EFE383;
    border-right: 1px solid #BBB15F;
}
  </style>
</head>

<body>

  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr><td class="title">Cangjie Code Coverage Report</td></tr>
    <tr><td class="hr"></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding="1" border="0" width="100%">
          <tr>
            <td class="headerName">File:</td>
            <td class="headerValue">src/config_server/common/config_utils/yaml_to_proerties.cj</td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerValue" style="text-align:right;">Hit</td>
            <td width="10%" class="headerValue" style="text-align:right;">Total</td>
            <td width="15%" class="headerValue" style="text-align:right;">Coverage</td>
          </tr>
          <tr>
            <td class="headerName">Date:</td>
            <td class="headerValue">2024-03-05 17:47:37</td>
            <td></td>
            <td class="headerName">Lines:</td>
            <td class="headerTableEntry">45</td>
            <td class="headerTableEntry">47</td>
            <td class="headerTableEntry" style="background-color:LightGreen">95.7 %</td>
          </tr>
          <tr>
            <td class="headerName">Legend:</td>
            <td class="headerValueLeg">
              <span style="background-color:LightPink">low: &lt; 75.0 %</span>
              <span style="background-color:Yellow">medium: &gt;= 75.0 %</span>
              <span style="background-color:LightGreen">high: &gt;= 90.0 %</span>
            </td>
            <td></td>
            <td class="headerName">Branches:</td>
            <td class="headerTableEntry">-</td>
            <td class="headerTableEntry">-</td>
            <td class="headerTableEntry" style="background-color:LightGreen">-</td>
          </tr>
        </table>
      </td>
    </tr>

    <tr><td class="hr"></td></tr>
  </table>

  <br>
  <table cellspacing="0" cellpadding="1">
     <tr>
      <td width="5%" align="right" class="srcHeader">Line</td>
      <td width="5%" align="right" class="srcHeader">Branch</td>
      <td width="5%" align="center" class="srcHeader">Hit</td>
      <td width="75%" align="left" class="srcHeader src">Source</td>
    </tr>

    <tr>
<td align="right" class="lineno"><pre>1</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>/*</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>2</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * Copyright (c) Primeton Technologies, Ltd. 2023-2023. All rights reserved.</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>3</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> */</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>4</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>package configServer.common.configUtils</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>5</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>6</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>from yaml4cj import yaml.*</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>7</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>from std import os.posix.*</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>8</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>from std import io.*</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>9</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>from std import fs.*</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>10</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>from std import collection.*</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>11</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>from serialization import serialization.*</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>12</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>from encoding import json.*</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>13</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>14</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>/**</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>15</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * yaml转Proerties</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>16</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> *</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>17</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * @author gaoyang (mailto:gaoyang@primeton.com)</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>18</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> */</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>19</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>20</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>// 全局定义proerties Map</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>21</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>public var proertiesMap: HashMap&lt;String, String&gt; = HashMap&lt;String, String&gt;()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>22</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>23</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>/**</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>24</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * 读取yaml文件</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>25</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> *</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>26</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * @param pathname yaml或yml文件路径</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>27</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * @Author: gaoyang@primeton.com</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>28</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> */</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>29</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>public func readYaml(pathname: String) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>30</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    var fs: File = File(pathname, OpenOption.Open(true, false))</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>31</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    if (fs.canRead()) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>32</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        var res: Array&lt;UInt8&gt; = fs.readToEnd()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>33</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        fs.close()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>34</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        var jv = decode(res)</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>35</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        return jv.toString()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>36</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>    }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>37</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount uncoveredLine"><pre>N</pre></td>
<td align="left" class="src uncoveredLine"><pre>    return String.empty;</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>38</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>}</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>39</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>40</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>public func readJson(pathname: String) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>41</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    var fs: File = File(pathname, OpenOption.Open(true, false))</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>42</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    if (fs.canRead()) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>43</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        var res: Array&lt;UInt8&gt; = fs.readToEnd()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>44</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        fs.close()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>45</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        return String.fromUtf8(res);</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>46</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>    }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>47</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount uncoveredLine"><pre>N</pre></td>
<td align="left" class="src uncoveredLine"><pre>    return String.empty;</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>48</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>}</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>49</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>50</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>/**</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>51</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * yaml转Proerties</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>52</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> *</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>53</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * @param jsString yaml或yml的JsonString</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>54</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * @Author: gaoyang@primeton.com</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>55</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> */</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>56</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>public func getYamlToProerties(jsString: String) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>57</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    proertiesMap.clear()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>58</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    var jsonob = JsonValue.fromStr(jsString).asObject()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>59</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    var map: HashMap&lt;String, JsonValue&gt; = jsonob.getFields()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>60</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    for ((k, v) in map) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>61</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        mapToProerties(v, k, "");</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>62</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>    }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>63</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>}</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>64</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>65</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>/**</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>66</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * map转Proerties</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>67</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> *</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>68</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * @param jv yaml或yml的JsonString</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>69</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * @param key key值</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>70</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * @param parentKey 父级key值</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>71</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> * @Author: gaoyang@primeton.com</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>72</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre> */</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>73</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>public func mapToProerties(jv: JsonValue, key: String, parentKey: String): Unit {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>74</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    var mapKey: String = ""</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>75</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    if (parentKey.isEmpty()) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>76</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        mapKey = key</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>77</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>    } else {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>78</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        mapKey = parentKey + "." + key</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>79</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>    }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>80</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>    if (jv.toString().size &gt; 0) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>81</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>        match (jv.kind()) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>82</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>            case JsInt =&gt; proertiesMap.put(mapKey, jv.toString())</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>83</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>            case JsString =&gt; proertiesMap.put(mapKey, jv.toString())</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>84</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>            case JsBool =&gt; proertiesMap.put(mapKey, jv.toString())</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>85</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>            case JsFloat =&gt; proertiesMap.put(mapKey, jv.toString())</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>86</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>            case JsObject =&gt;</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>87</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                var map: HashMap&lt;String, JsonValue&gt; = JsonValue.fromStr(jv.toString()).asObject().getFields()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>88</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                for ((k, v) in map) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>89</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                    mapToProerties(v, k, mapKey);</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>90</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>                }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>91</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>            case JsArray =&gt;</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>92</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                var list = jv.asArray()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>93</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                for (i in 0..list.size()) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>94</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                    var index: Int64 = i;</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>95</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                    var jsonV = list.get(i)</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>96</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>                    try {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>97</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                        var map: HashMap&lt;String, JsonValue&gt; = JsonValue.fromStr(jsonV.getOrThrow().toString()).asObject(</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>98</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>                        ).getFields()</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>99</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                        for ((k, v) in map) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>100</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                            mapToProerties(v, k, mapKey + "[" + index.toString() + "]");</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>101</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>                        }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>102</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                    } catch (e: JsonException) {</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>103</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                        mapToProerties(jsonV.getOrThrow(), "[" + index.toString() + "]", mapKey);</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>104</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>                    }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>105</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>                    index++;</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>106</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>                }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>107</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre></pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>108</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount coveredLine"><pre>Y</pre></td>
<td align="left" class="src coveredLine"><pre>            case _ =&gt; proertiesMap.put(mapKey, "")</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>109</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>        }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>110</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>    }</pre></td>
</tr>
<tr>
<td align="right" class="lineno"><pre>111</pre></td>
<td align="right" class="linebranch"></td>
<td align="center" class="linecount "><pre></pre></td>
<td align="left" class="src "><pre>}</pre></td>
</tr>

  </table>
  <br>

  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr><td class="hr"><td></tr>
    <tr><td class="footer">Generated by: cjcov (Version 1.0.0)</a></td></tr>
  </table>
  <br>

</body>

</html>
